package lab02.test15;

/**
 * Created by ASUS on 2017/10/21.
 */
public class Graduate implements StudentInterface,TeacherInterface {
    String name;
    String sex;
    int age;
    double fee;
    double pay;

    public void setFee(double fee) {
        this.fee = fee;
    }

    @Override
    public void setFee() {

    }

    @Override
    public double getFee() {
        return this.fee;
    }

    public void setPay(double pay) {
        this.pay = pay;
    }

    @Override
    public void setPay() {

    }

    @Override
    public double getPay() {
        return this.pay;
    }
    public Graduate(String name,String sex,int age,double fee,double pay){

        this.name = name;
        this.sex = sex;
        this.age = age;
        this.fee = fee;
        this.pay = pay;
    }
    public Graduate(){

        this.name = "Unknown";
        this.sex = "Unknown";
        this.age = 0;
        this.setFee(fee);
        this.getPay( pay);
    }

    private void getPay(double pay) {
    }

    public static void main(String[] args){
        Graduate zhangsan=new Graduate("zhangsan","male",20,100,15000);
      double i=zhangsan.getFee()*12-zhangsan.getPay();
        if(i<2000){
            System.out.println("You  need a loan!");
        }else
            System.out.println("You income is enough！");
    }
}
